$('#myElement').each(function() { new RTP.PinchZoom($(this), {}) }) //或者 var myElement = document.getElementById("myElement"); var pz = new PinchZoom.default(myElement, { draggableUnzoomed: false, minZoom: 1, onZoomStart: function(object, event){ // Do something on zoom start // You can use any Pinchzoom method by calling object.method() }, onZoomEnd: function(object, event){ // Do something on zoom end } })